package top.toptimus.dto.style;

import com.google.common.base.Strings;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 款式标准单耗
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class StyleWithUnitConsumptionIndexDTO {
    private String id;  //  款式id
    private String name;    //  款式名称
    private String code;    //  编码
    private String category;    //  款式分类——只是用户分类
    private String unit;    //  款式面料最大单耗
    private String averageUnit; //  款式面料平均单耗

    public boolean check() {
        return !Strings.isNullOrEmpty(this.id) && !Strings.isNullOrEmpty(this.name) && !Strings.isNullOrEmpty(this.code) && !Strings.isNullOrEmpty(this.unit) && !Strings.isNullOrEmpty(this.averageUnit);
    }
}
